package com.example.fileupload.service;

import com.example.fileupload.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface FileService {
    FileInfo saveFile(MultipartFile file) throws IOException;
    List<FileInfo> getAllFiles();
    FileInfo getFileById(Long id);
    boolean deleteFile(Long id);
}